import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/home',
    name: 'Home',
    component: Home,
    children:[
      {
        path: 'nowplaying',
        component: () => import('../views/Flims/NowPlaying.vue')
      },
      {
        path: 'comingsoon',
        component: () => import('../views/Flims/ComingSoon.vue')
      },
    ]
  },
  {
    path: '/cinema',
    name: 'cinema',
    component: () => import('../views/Cinema.vue')
  },
  {
    path: '/message',
    name: 'message',
    component: () => import('../views/Message.vue'),
    meta:{
      isNav:false
    }
  },
  {
    path: '/center',
    name: 'center',
    component: () => import('../views/Center.vue')
  },
  {
    path: '/city',
    name: 'city',
    component: () => import('../views/City.vue')
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
